﻿using DevExpress.XtraGrid;
using DoAnQuamLy.DataAccess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DoAnQuamLy.Controller
{
    class DanhMucPhieuThuChiController
    {
        DanhMucPhieuThuChiData data = new DanhMucPhieuThuChiData();
        public void SapXepDuLieuLenfromDanhmucphieuthu(GridControl dgv)
        {

            BindingSource bs = new BindingSource();
            bs.DataSource = data.Danhmucphieuthu();
            dgv.DataSource = bs;
        }
        public void SapXepDuLieuLenfromDanhmucphieuchi(GridControl dgv)
        {

            BindingSource bs = new BindingSource();
            bs.DataSource = data.Danhmucphieuchi();
            dgv.DataSource = bs;
        }
        public void Update()
        {
            data.Update();
        }
    }
}
